-- GENERATED SPELL FOR [Tobias Sarkhoff] --


function spell0_24155(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(22121,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24155', 636, 1)
end

function Sorts_24155(pUnit, Event)
local choix_sorts_24155 = math.random(0, 0)
if choix_sorts_24155 == 0 then
pUnit:RegisterEvent('spell0_24155', 1, 1)
end
end

function mob24155_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24155', math.random(1500, 3000), 1)
end

function mob24155_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24155_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24155_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24155, 1, 'mob24155_Action')
RegisterUnitEvent(24155, 2, 'mob24155_Leave')
RegisterUnitEvent(24155, 3, 'mob24155_Kill')
RegisterUnitEvent(24155, 4, 'mob24155_Die')
